<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-touch-fullscreen" content="YES">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- <meta http-equiv="Expires" content="-1">
	<meta http-equiv="pragram" content="no-cache"> -->

<meta http-equiv="Cache-Control"
	content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>发票详情</title>
<!--引入pageSlider所需样式表-->
<link rel="stylesheet" type="text/css" href="css/pageSlider.css">
<!--引入zepto.js-->
<script type="text/javascript" src="js/zepto.js"></script>
<!--引入pageSlider.js文件-->
<script type="text/javascript" src="js/pageSlider.js"></script>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<!-- <script type="text/javascript" src="js/jquery.rotate.js"></script> -->
<script src="js/DD_roundies_min.js"></script>

<style type="text/css">

	* {
    margin: 0;
    padding: 0;
}

</style>


</head>
<body style="background-color: #f0f0f0">
	
	<div style="width: 100%;overflow-y:scroll">
		<div align="left" onclick="back()" style="background-color: #7275ff;color: white;line-height: 3rem;width: 100%;">&lt;返回</div>

		<div id="invoiceItem">
			<table id="invoiceItemTables" style="width: 100%">
					
			</table>
		</div>
	</div>
	

	<script type="text/javascript">
		$(document).ready(function() {
			// 获取URL后面的参数
			var cardId =GetQueryString("cardId");
			var encrypt_code =GetQueryString("encrypt_code");
			
			$.ajax({ 
				 type: "GET",
				 url: "/recruit/restful/signature/getInvoiceInfo",
				 data: {"card_id":cardId,"encrypt_code":encrypt_code},
				 dataType: "json",
				 success: function(data){
					 var invoiceDetail =JSON.parse(data.obj);
					 var userInfo =invoiceDetail['user_info'];
					 
					 // 封装发票详情
				 },
				 error: function(XMLHttpRequest, textStatus, errorThrown) {
					 
				 }
			});
			
		});
		
		/** 返回首页 **/
		function back(){
			var protocol =window.location.protocol;
			var host =window.location.host;
			var path =window.location.search;
			window.location.href="/recruit/h5/print/print.html";
		}
		
		function GetQueryString(name)
		{
	       var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	       var r = window.location.search.substr(1).match(reg);
	       if(r!=null)return  unescape(r[2]); return null;
		}
		
	</script>

</body>
</html>